package com.xingxuecn.limit.dao;

import com.xingxuecn.limit.common.model.Role;
import com.xingxuecn.limit.common.model.UserRole;

import java.sql.SQLException;
import java.util.List;

/**
 * @author TB at 2018-09-18 10:00
 */
public interface UserRoleDao {
    int add(UserRole userRole) throws SQLException;

    int delete(UserRole userRole) throws SQLException;

    List<Role> loadRoleByUser(Integer userId) throws SQLException;
}
